<?php

define('REQUIRED_PHP_VERSION', '5.1.6');
define('REQUIRED_MYSQL_VERSION', '5.0.77');
define('REQUIRED_ZEND_VERSION', '1.11.10');

final class Engine_Version {
	
	private $version = '0.0.1';
	private $release = '2011.08.25';
	
	protected $latestVersion;
	
	public function getVersion() {
		return $this->version;
	}
	
	public function getLatest() {
		$handle = fopen('http://webjestic.net/api/cms/cms-version', 'r');
	    if (false !== $handle) {
        	$this->$latestVersion = stream_get_contents($handle);
            fclose($handle);
        }
        return $this->latestVersion;
	}

}
?>